﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZLCMS.Data.Model;

namespace ZLCMS.Web.SystemManage.Basics.Shop.Score
{
    public partial class ScoreCardDetail : System.Web.UI.Page
    {
        protected ShopScoreCard Ticket { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //设置对象
                int uid = 0;
                try
                {
                    uid = Int32.Parse(Request["uid"]);
                }
                catch
                {

                }
                using (NHibernate.ISession session = DotNet.Common.NHibernateUtil.SessionFactoryHelper.CreateSession())
                {
                    Ticket = session.Get<ShopScoreCard>(uid);
                    if (Ticket != null)
                    {
                        //保存uid
                        ViewState["uid"] = uid;
                    }
                }
            }
        }
    }
}